# isinstance 判断类型是否一致
print(isinstance(123, int))  # true
print(isinstance(123.45, float))  # true
print(isinstance('abc', str))  # true
print(isinstance([1, 2, 3], list))  # true
print(isinstance((1, 2, 3), tuple))  # true
